package auto.app.exetion;




public enum MainExetionMessage {
    ACCOUNTSELECTONEERROR(500,"未查询到该用户"),
    ACCOUNTSELECTONEEXISTENCE(500,"用户名已存在"),
    MENUSSELECTNULL(500,"该账号未配置菜单"),
    TESTINGENVIRONMENT(500,"未查询到对应的测试环境数据"),
    TESTINGENVIRONMENTLIST(500,"集合中的id未查询到对应数据"),
    INTERFACEERROR(500,"未查询到对应的接口数据"),
    DELETEINTERFACECASEERROR(500,"请先删除对应的测试用例"),
    CASEERROR(500,"未查询到对应的测试用例"),
    CASECOPYERROR(500,"被复制的测试用例不存在"),
    CASECOPYPARAMSERROR(500,"复制参数时出现异常"),
    CASENAMEERROR(500,"测试用例名称已存在"),
    CASEADDMYSQLERROR(500,"测试用例新增失败"),
    CASEDELETELISTERROR(500,"删除的测试用例ID集合不能为空"),
    CASEDELETELISTCOLLECTCASEERROR(500,"测试用例正被使用，无法删除，请先删除测试合集中的用例"),
    CASEDELETEPARMSERROR(500,"删除测试用例关联参数失败"),
    PARAMSUPDATEERROR(500,"修改参数失败"),
    CASEDELETERESULTERROR(500,"删除测试用例关联的结果集失败"),
    CASEDELETEERROR(500,"删除测试用例失败"),
    CASEINTERFACEERROR(500,"未查询对应的测试用例的接口信息或数据源信息"),
    PARAMSSELECTERROR(500,"未查询到对应的参数"),
    EXTRACTIONADDERROR(500,"关联提取的列表为空"),
    EXTRACTIONADDSELECTERROR(500,"关联提取在表中不存在"),
    EXTRACTIONADDSELECTLISTERROR(500,"对应测试用例没有关联提取"),
    INSERTMYSQLCOLLECTION(500,"新增测试合集失败"),
    INSERTMYSQLCOLLECTIONCASE(500,"新增测试合集测试用例关联关系失败"),
    SELECTCOLLECTERROR(500,"测试合集不存在"),
    SELECTMYSQLCOLLECTIONCASE(500,"不存在关联的测试用例"),
    COLLECTIONCASEISSAVE(500,"测试合集中已存在测试用例"),
    SORTDISTANTERROR(500,"排序重复"),
    INSERTSORTERROT(500,"保存排序报错"),
    NOSORTERROT(500,"存在测试用例并未排序"),
    TESTCOLLECTIONSELECTERROR(500,"不存在对应的测试合集"),
    DELETECOLLECTCASEMYSQLERROR(500,"删除关联关系报错"),
    RESULTSELECTERROR(500,"测试结果不存在"),
    DELETECASETELECTIONERROR(500,"测试合集中删除的测试用例集合不能为空"),
    SORTNOTALLEROOR(500,"未对测试合集中用例全部进行排序"),
    JSONAUTOEXTRACTIONERROR(500,"关联提取JSON错误"),
    VARIABLECENTNOTEREMPTY(500,"存在变量同名的"),
    VARIABLECENTEREMPTY(500,"变量不存在"),
    AUTOGLOBALNAMEERROR(500,"全局参数变量名重复"),
    AUTOGLOBALSELECTERROR(500,"全局参数不存在"),
    BEFOREASSERTIONSELECTERROR(500,"断言不存在"),
    BEFOREASSERTIONINSERTERROR(500,"请输入提取第几个参数"),
    URLPARAMSISNULL(500,"该接口需要url传参"),
    INTERFACEADDERROR(500,"该接口已存在"),
    CRONERROR(500,"定时任务不存在"),
    CRONREDISERROR(500,"redis中不存在定时任务测试合集id"),
    CRONADDTASKKEYERROR(500,"定时任务名称已存在"),
    CRONADDTASKKEYNOTNULLERROR(500,"定时任务不存在"),
    CONNECTIONNAMESAVE(500,"数据库连接名称已存在"),
    CONNECTIONSLECTERROR(500,"数据库连接不存在"),
    DEFALUTCONNECTFONFIGURATION(500,"请设置默认数据库"),
    DATABASECAOZUOERROR(500,"数据库操作不存在"),
    SQLTYPEERROR(500,"SQL类型不存在"),
    RULENULL(500,"角色不存在"),
    ACCOUNTRULE(500,"该角色正在被使用中"),
    ACCOUNTRULESAVE(500,"角色ID错误"),
    RULENAMEEMPTY(500,"角色名已存在"),
    MENUSNAMEEMPTY(500,"菜单名已存在"),
    MENUSPARMENTEMPTY(500,"父类ID不存在或不符合规则"),
    MENUSNOTSAVE(500,"菜单不存在"),
    MENUSISSHIYONG(500,"菜单正在被使用中"),
    ADDXXLJOBERROR(500,"新增定时任务失败"),
    STARTJOBERROR(500,"该定时任务参数异常->job id 请联系管理员"),
    STARTJOBERRORSECONED(500,"改变xxl-job定时任务状态异常"),
    OSSTEMPLATEUPLOADERROR(500,"OSS服务文件下载失败"),
    AUTOCOLLECTIOONRESULETERROR(500,"执行记录不存在"),
    FILEAUTOERROR(500,"文件不存在"),
    PARAMSBODYERROR(500,"未设置请求体无对应的参数")
    ;

    private Integer code;
    private String msg;

    MainExetionMessage(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "MainExetionMessage{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }

}
